import request from '@/utils/request'


// 添加电子账户
export function addElEmail(query) {
    return request({
        url: '/system/addElEmail'+query,
        method: 'get',
        params: query
    })
}
// 存款
export function deposit(data) {
    return request({
        url: '/system/deposit',
        method: 'post',
        data: data
    })
}
// 转账
export function transfer(data) {
    return request({
        url: '/system/transfer',
        method: 'post',
        data: data
    })
}

// 提现
export function extract(data) {
    return request({
        url: '/system/extract',
        method: 'post',
        data: data
    })
}
// 查询流水
export function water(query) {
    return request({
        url: '/system/water',
        method: 'get',
        params: query
    })
}
// 查询余额
export function queryMoney(query) {
    return request({
        url: '/account/queryBalance/'+query,
        method: 'get',
        params: query
    })
}

// 查询个人信息
export function userInfo(query) {
    return request({
        url: '/system/userInfo',
        method: 'get',
        params: query
    })
}

// 修改个人信息
export function updateInfo(data) {
    return request({
        url: '/system/updateInfo',
        method: 'post',
        data: data
    })
}
//绑定银行卡
export function addCard(data) {
    return request({
        url: '/system/addCard',
        method: 'post',
        data: data
    })
}